#include "stdafx.h"
#include "Analyze.h"
#include <wtypes.h>
#include "..\Parser.h"

BOOL do_desc_first()
{
	SymbolStack.Pop();
	NAutoPtr<CSyntaxTreeNode> StmtList = ParserAnalyze.Pop();
	NAutoPtr<CSyntaxTreeNode> Node = new CSyntaxTreeNode(CSyntaxTreeNode::stDo,1 << 0); // almost have stmt_list node
	Node->Child().Add(StmtList);
	return TRUE;
}

BOOL do_desc_second()
{
	SymbolStack.Pop();
	SymbolStack.Pop();
	SymbolStack.Pop();
	return TRUE;
}